package com.he.architecture;

import org.modelmapper.ModelMapper;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;

@EnableJpaAuditing
@SpringBootApplication
public class architectureApplication {
    //ModelMapper是一个用于在不同对象之间进行自动映射的库，通常用于DTO（数据传输对象）和实体类之间的转换。
    @Bean
    public ModelMapper modelMapper() {
        return new ModelMapper();
    }

    public static void main(String[] args) {

        SpringApplication.run(architectureApplication.class,args);
    }
}
